import {get,post} from './http'
// export const addmenu=(data)=>post('/api/menuadd',data)
//获取
export const getnew=()=>get('/api/getnew')
//倒计时
export const getcountdown=()=>get('/api/getcountdown')
//万人团
export const getgroupon=()=>get('/api/getgroupon')
//限时秒杀
export const getseckill=()=>get('/api/getseckill')
//three
export const getindexgoods=()=>get('/api/getindexgoods')
//cate
export const getcate=()=>get('/api/getcate')

export const getgoods=(data)=>get('/api/getgoods',data)
//详情
export const getgoodsinfo=(data)=>get('/api/getgoodsinfo',data)
//注册
export const register1=(data)=>post('/api/register',data)
//登录
export const login1=(data)=>post('/api/login',data)
//优惠券
export const getcoupon=(data)=>get('/api/getcoupon',data)
//添加购物车
export const cartadd=(data)=>post('/api/cartadd',data)
//购物车列表
export const cartlist=(data)=>get('/api/cartlist',data)
//删除
export const cartdelete=(data)=>post('/api/cartdelete',data)
//修改购物车
export const cartedit=(data)=>post('/api/cartedit',data)
//banner
export const getbanner=(data)=>get('/api/getbanner',data)
//搜索
export const search=(data)=>get('/api/search',data)



















